using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models {
	[Table("Product_attributes")]
	public class Product_attributes {
		[Key]
		[DisplayName(" ")]
		public int ID { get; set; }

		[Required(ErrorMessage = " 不能空")]
		[DisplayName(" ")]
		public string Pid { get; set; }

		[DisplayName(" ")]
		public string PropertyName { get; set; }

		[DisplayName(" ")]
		public string Title { get; set; }

		[DisplayName(" ")]
		public decimal Value1 { get; set; }

		[DisplayName(" ")]
		public decimal Value2 { get; set; }

		[DisplayName(" ")]
		public decimal? Value3 { get; set; }

		[Required(ErrorMessage = "创建时间不能空")]
		[DisplayName("创建时间")]
		public DateTime Begindate { get; set; }

		[DisplayName("最后修改时间")]
		public DateTime? LastUpdateDate { get; set; }

		[ForeignKey("Pid")]
		public virtual Product Product { get; set; }

		public int Width { get; set; }

		public int Height { get; set; }
	}
}
